const getAttendanceStatus = () => {
  return {
    data: {
      "code": 200,
      "data": {
        "constructionSite": {
          "id": "工地id",
          "name": "工地名",
          "attendanceStatus": {
            "status": 0,// 0=未打卡 1=已打上班卡 2=已打下班卡
            "firstAttendanceAt": 0,// 首次打卡时间 0=未打卡
            "lastAttendanceAt": 0 // 末次打卡时间 0=未打卡
          }
        },// 当前所处工地
        "lastConstructionSite": {
          "id": "工地id",
          "name": "工地名",
          "attendanceStatus": {
            "status": 1,
            "firstAttendanceAt": 0,
            "lastAttendanceAt": 0
          }
        },// 上次打卡的工地
        "serverTime": 1686218400
      }
    }
  }
}
const postAttendanceDo = () => {
  return {
    data: {
      "code": 200,
      "data": {
        "constructionSite": {
          "id": "工地id",
          "name": "工地名",
          "attendanceStatus": {
            "status": 1,// 0=未打卡 1=已打上班卡 2=已打下班卡
            "firstAttendanceAt": 1686218400,// 首次打卡时间 0=未打卡
            "lastAttendanceAt": 0 // 末次打卡时间 0=未打卡
          }
        },// 当前所处工地
        "serverTime": 0
      }
    }
  }
}
const getAttendanceRecords = () => {
  return {
    data: {
      "code": 200,
      "data": {
        "constructionSiteList": [
          {
            "id": 2,
            "name": "工地1",
            "attendanceStatus": {
              "status": 2,
              "firstAttendanceAt": 1686450917,
              "lastAttendanceAt": 0
            }
          },
          {
            "id": 3,
            "name": "工地2",
            "attendanceStatus": {
              "status": 2,
              "firstAttendanceAt": 1686454370,
              "lastAttendanceAt": 1686458372
            }
          }
        ],
        "monthAttendanceDate": ["2023-06-11"]
      },
      "msg": "ok"
    }
  }
}

export default { getAttendanceStatus, postAttendanceDo, getAttendanceRecords }